<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"/>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>爱贝儿医</title>
    <link rel="stylesheet" href="business/style/common.css?version=201">
    <script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="business/js/jquery.js"></script>
    <script src="app/js/common.js?v=20120316"></script>
    <style type="text/css">
        .yindao{
            width: 100%;
            height: 100%;
            position: fixed;
            background:rgba(0,0,0, 0.75);
            z-index: 2000;
            display: none;
        }
        .yindao .sign_1{
            margin-left: 64px; margin-top: 5px; width: 100px;
        }
        .yindao .sign_2{
            width: 50%;display: block; margin: 40px;
        }
        .yindao .button{
            width: 30%; display: block; margin: 100px auto;
        }
        .sign_list{
            position: fixed;
            top: 44px;
            width: 100%;
            height: auto;
            background-color: #FFFFFF;
            z-index: 400;
            display: none;
        }
        .sign_list div{
            height: 35px;
            line-height: 35px;
            font-size: 0.7rem;
            color: #aaaaaa;
            width: 95%;
            border-top: solid 1px #cccccc;
            padding-left: 2%;
            padding-right: 2%;
            margin: auto;
        }
        .sign_list div img{
            float: right;
            width: 15px;
            height: 11px;
            margin-top: 12px;
            display: none;
        }
        .sign_list_bg {
            position: fixed;
            z-index: 300;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0, 0.75);
            display: none;
        }
        .c_1{
            color: #DB3656!important;
        }
        .c_1 img{
            display: block!important;
        }
        .sign_down, .sign_up{
            margin: 16px 0 16px 4px!important; height: 12px!important; width: 12px!important;
        }
        .sign{
            color: #666666;
            border: solid 1px #BBBBBB;
            border-radius: 5%;
            padding: 3px;
            font-size: 0.546136rem;
            height: 12px;
            line-height: 12px;
            margin: 3px 0;
            display: inline-block;
        }
    </style>
</head>
<body>
<!--分类按钮引导层-->
<div class="yindao">
    <img src="resources/icon/course/sign_1.png" class="sign_1" alt=""/>
    <img src="resources/icon/course/sign_2.png" class="sign_2" alt=""/>
    <img src="resources/icon/course/button.png" class="button" alt=""/>
</div>
<div class="header">
    <div class="header_logo">
        <img src="<?=G_SITE_CDN?>/business/style/logo_small.png" />
        <h1><?=$current_sign?></h1>
        <img src="resources/icon/course/down.png" class="sign_down">
        <img src="resources/icon/course/up.png" class="sign_up" style="display: none">
    </div>
    <a tongji="aibei" key="课程回顾" url="<?=$course_history_url?>"><input name="" type="button" value="课程回顾" /></a>
</div>
<div class="sign_list">
    <?php foreach($signList as $k=>$v): ?>
        <div sign_id="<?=$v['id']?>" <?php if($v['id'] == $sign_id):?>class="c_1"<?php endif;?> tongji="aibei" key="课程分类" keyExt="<?=$v['name']?>" url="<?=$this->url('course','index',array('sign_id'=>$v['id']))?>">
            <?=$v['name']?>
            <img src="resources/icon/course/sign_3.png">
        </div>
    <?php endforeach; ?>
</div>
<div class="sign_list_bg"></div>
<div class="vedio_list">
    <ul>

        <?php
        if($live_course && (empty($_GET['page']) || $_GET['page']<2)):
        foreach($live_course as  $key=>$value):
            $avatar = trim($value['头像']);
            if (!$avatar) {
                $avatar = G_SITE_CDN .'/business/img/default_avatar.jpg';
            }
            if (substr($avatar, 0, 4) != 'http') {
                $avatar = G_SITE_CDN .'/business/'. $avatar;
            }
        ?>
        <li tongji="aibei" key="课程详情" keyExt="<?=$value['title']?>" url="<?=$course_detail_url.'&id='.$value['id']?>">
            <a>
                <dl>
                    <dt><img src="<?=$avatar?>" class="avatar" /></dt>
                    <dd>
                        <h1><?= $value['title']?></h1>
                        <?php if($value['sign_name']):?>
                        <div class="sign"><?=$value['sign_name']?></div>
                        <?php endif;?>
                        <div class="author"><?= $value['name']?></div>
                        <div class="time">授课时间：<?= $value['开始时间']?></div></dd>
                </dl>
            </a>
        </li>

        <?php
            endforeach;
        endif;
        ?>

        <?php
        foreach($course_list as  $key=>$value):
        $avatar = trim($value['头像']);
        if (!$avatar) {
        $avatar = G_SITE_CDN .'/business/img/default_avatar.jpg';
        }
        if (substr($avatar, 0, 4) != 'http') {
        $avatar = G_SITE_CDN .'/business/'. $avatar;
        }
        ?>
            <li tongji="aibei" key="课程详情" keyExt="<?=$value['title']?>" url="<?=$course_detail_url.'&id='.$value['id']?>">
                <a>
                    <dl>
                        <dt><img src="<?=$avatar ?>" class="avatar" /></dt>
                        <dd>
                            <h1><?= $value['title']?></h1>
                            <?php if($value['sign_name']):?>
                            <div class="sign"><?=$value['sign_name']?></div>
                            <?php endif;?>
                            <div class="author"><?= $value['name']?></div>
                            <div class="time">授课时间：<?= $value['开始时间']?></div></dd>
                    </dl>
                </a>
            </li>

        <?php endforeach?>

    </ul>
</div>

<div class="pages">
 <?= $page->showpage_weixin();?>
</div>
<?php require 'app/templates/common/download.html'; ?>
</body>
</html>
<?php require 'app/templates/common/foot.html'; ?>